﻿import QtQuick 2.0
import "../components"

Item {
    id: root
    anchors.fill: parent
    Connections{  // qmlre
        target: MACO
        onKbcsread:{
            tab.setAllData(kbcs)
        }
    }

    Row{
        spacing: 15*dp
        x: root.width - 255*dp
        PushButton{
            title: "读取"
            defaultMode1: true
            onReleased: {
                MACO.kbr();
            }
        }PushButton{
            title: "写入"
            defaultMode1: true
            onReleased: {
                MACO.kbw(tab.getAllData())
            }
        }
    }

    GridTable{
        id : tab
        y: 60*dp
        columnCount: 6
        rowCount: 2
        title: ["A", "B", "C", "D", "E", "F"]
        title2: ["", "K值", "B值"]
    }

}
